New Project

  • Step

    1. Pre requirement

    1) Windows 10 or later
    2) Python 3.6 or later
    3) Python pip

    Step 1: Opening PowerShell

    The first step is to open PowerShell. To do this, press the Windows key and type PowerShell. Right-click on the PowerShell icon and select Run as Administrator.

    Step 2: Verifying Python Installation

    
    python --version
    

    Step 3: Upgrading PIP

    
    python -m pip install –upgrade pip
    
    OR
    
    C:\Users\manoj.vijayan\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip
    

    Step 4: Creating a Project Directory

    
    mkdir django_project
    
    cd django_project
    

    Step 5: Creating the Virtual Environment

    
    python -m venv venv
    
    

    Step 6: Activating the Virtual Environment

    
    venv\Scripts\Activate.ps1
    
    
    OR
    
    venv\Scripts\activate
    
    

    Step 7: Installing Django

    
    pip install Django
    pip3 install Django
    
    pip install Django --user
    
    python -m pip install Django
    py -m pip install Django
    python3 -m pip install Django
    
    
    

    Step 8: Create the Django Project

    
    django-admin startproject test_project
    
    cd test_project
    

    Step 9: Running the Development Server

    
    python manage.py runserver
    

    Now, Go to http://127.0.0.1:8000/ in your web browser.